package com.timeshare.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.timeshare.dto.ReviewRequest;
import com.timeshare.entity.Review;

/**
 * 评价服务接口
 */
public interface ReviewService extends IService<Review> {
    
    /**
     * 创建评价
     */
    void createReview(Long userId, ReviewRequest request);
    
    /**
     * 获取用户收到的评价
     */
    Page<Review> getUserReviews(Long userId, Integer page, Integer size);
}

